﻿@if (Request.IsAuthenticated) {  
    var genericMessage = new SCS.Business.PrivateMessageService();
    var count = genericMessage.NewPrivateMessageCount(User.Identity.Name);
    if(count>0)
    {
        <text>
<span class="badge">@count</span>
    </text>
}
}
